<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .main{
            width: 400px;
            height: 300px;
            overflow: hidden;
            
        }
        .main .photo{
            width: 1200px;
            animation: turn 5s  ease-out infinite;
            
        }
        .main .photo>img{
           float: left;
           object-fit: cover;
           object-position: top;
           width: 400px;
           height: 300px;
        }
        @keyframes turn{
           0%, 25% {
           		margin-left: 0;
           	}
           	35%, 60% {
           		margin-left: -400px;
           	}
           	70%, 100% {
           		margin-left: -800px;
           	}
        }
    </style>
</head>
<body>
    <div class="main">
        <div class="photo">
            <img src="./01.webp" alt="">
            <img src="./02.webp" alt="">
            <img src="./03.webp" alt="">
        </div>
    </div>
</body>
</html>